import outlines from '../../apis/outlines';

export default {
  namespaced: true,
  state: {
    outlines: [],
  },
  mutations: {
    setOutlines(state, data) {
      state.outlines = data;
    },
  },
  actions: {
    async getOutlines({ commit }, odata) {
      const { data } = await outlines.getOutlines(odata);
      commit('setOutlines', data);
    },
  },
};
